﻿<!--
    Dialog ChienDich
    Use for create ChienDich
    >>> Author: cyworld8x
-->
<Window  
        xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"  
        x:Class="OODCRM.ChienDichDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Dialog Tổ chức" Height="690" Width="Auto" MinHeight="610" MinWidth="600">
    <Grid Height="Auto" Width="Auto">
        <TabControl Grid.Column="0" Grid.ColumnSpan="2"  Name="tabControl_tabThemChienDichDialog" VerticalAlignment="Top" >
            <TabItem Header="Thông tin chung" Name="tabItemThongTinChung_tabThemChienDichDialog">
                <Grid Grid.Row="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>

                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>

                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Border Margin="5" CornerRadius="5" Grid.ColumnSpan="2" BorderBrush="#FF149A08" BorderThickness="1">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="110"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>

                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>

                            </Grid.RowDefinitions>

                            <TextBlock Text="Mã hiệu (*)" Margin="5"/>
                            <TextBox x:Name="tbxMaHieu_tabThemChienDichDialog" Grid.Column="1" Margin="5" Grid.ColumnSpan="5"
                         MinWidth="150" Text="{Binding MaHieu}"/>
                            <TextBlock Text="Tên chiến dịch (*)" Margin="5" Grid.Row="2"/>
                            <TextBox x:Name="tbxTenChienDich_tabThemChienDichDialog" Grid.Row="2" Grid.ColumnSpan="5" 
                         Grid.Column="1"  Margin="5"
                         Text="{Binding TenChienDich}"  />
                        </Grid>
                    </Border>
                    <Border Margin="5" CornerRadius="5" Grid.ColumnSpan="2" Grid.Row="1" BorderBrush="#FF149A08" BorderThickness="1">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="110"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>

                            </Grid.RowDefinitions>

                            <TextBlock Text="Loại" Margin="5"/>
                            <ComboBox x:Name="cbxLoai_tabThemChienDichDialog" Grid.Row="0" 
                          Grid.Column="1"  Margin="5"
                          SelectedValue="{Binding CHITIETPHANLOAILIENHE}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding TenPhanLoai}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>                           
                            <TextBlock Text="Ngày bắt đầu: " Margin="5" Grid.Row="0" Grid.Column="2"/>
                            <toolkit:DatePicker x:Name="dpNgayBatDau_tabThemChienDichDialog" Grid.Row="0" Grid.Column="3"  
                          Margin="5" Text="{Binding NgayBatDau}"  />
                            <TextBlock Text="Tình trạng" Margin="5" Grid.Row="1"/>
                            <ComboBox x:Name="cbxTinhTrang_tabThemChienDichDialog" Grid.Row="1" 
                          Grid.Column="1" Margin="5"
                          SelectedValue="{Binding CHITIETPHANLOAILIENHE}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding TenPhanLoai}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                            <TextBlock Text="Ngày kết thúc: " Margin="5" Grid.Row="1" Grid.Column="2"/>
                            <toolkit:DatePicker x:Name="dpNgayKetThuc_tabThemChienDichDialog" Grid.Row="1" Grid.Column="3" 
                          Margin="5" Text="{Binding NgayKetThuc}"  />
                            <TextBlock Text="Diễn giải: " Margin="5" Grid.Row="2" Grid.Column="0"/>
                            <TextBox x:Name="tbxDienGiai_tabThemChienDichDialog" Grid.Row="2" Grid.ColumnSpan="5" 
                         Grid.Column="1"  Margin="5" MinHeight="60"
                         Text="{Binding DienGiai}"  />



                        </Grid>
                    </Border>
                    <Border Margin="5,5,5,5" CornerRadius="5" Grid.Row="2" BorderBrush="#FF149A08" BorderThickness="1">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>


                            </Grid.RowDefinitions>

                            <TextBlock Text="SL đã gửi" Margin="5"/>
                            <TextBox x:Name="tbxSoLuongDG_tabThemChienDichDialog" Grid.Column="1" Margin="5" Grid.ColumnSpan="2" 
                         Text="{Binding Tel}"/>
                            <TextBlock Text="SL hồi âm kỳ vọng" Margin="5" Grid.Row="1" />
                            <TextBox x:Name="tbxTelCQ_tabThemChienDichDialog" Grid.Row="1"  Grid.Column="1" Margin="5" Grid.ColumnSpan="2" 
                         Text="{Binding TelCQ}"/>
                            <TextBlock Text="Tổng số hồi âm" Margin="5" Grid.Row="2" />
                            <TextBox x:Name="tbxTongSoHoiAm_tabThemChienDichDialog" Grid.Row="2"  Grid.Column="1" Margin="5" Grid.ColumnSpan="2" 
                         Text="{Binding Fax}"/>
                            <TextBlock Text="Tổng số tiềm năng" Margin="5" Grid.Row="3" />
                            <TextBox x:Name="tbxTongSoTiemNang_tabThemChienDichDialog" Grid.Row="3"  Grid.Column="1" Margin="5" Grid.ColumnSpan="2" 
                         Text="{Binding Mobile}"/>
                            <TextBlock Text="Tổng số liên hệ" Margin="5" Grid.Row="4" />
                            <TextBox x:Name="tbxTongSoLienHe_tabThemChienDichDialog" Grid.Row="4"  Grid.Column="1" Margin="5" Grid.ColumnSpan="2" 
                         Text="{Binding MobileKhac}"/>
                            <TextBlock Text="Doanh thu kỳ vọng" Margin="5" Grid.Row="5" />
                            <TextBox x:Name="tbxDoanhThuKyVong_tabThemChienDichDialog" Grid.Row="5"  Grid.Column="1" Margin="5" Grid.ColumnSpan="2" 
                         Text="{Binding Tel}"/>
                            <TextBlock Text="Chi phí thực" Margin="5" Grid.Row="6" />
                            <TextBox x:Name="tbxChiPhiThuc_tabThemChienDichDialog" Grid.Row="6"  Grid.Column="1" Margin="5" Grid.ColumnSpan="2" 
                         Text="{Binding TelKhac}"/>
                            <TextBlock Text="Chi phí dự trù" Margin="5" Grid.Row="7" />
                            <TextBox x:Name="tbxChiPhiDuTru_tabThemChienDichDialog" Grid.Row="7"  Grid.Column="1" Margin="5" Grid.ColumnSpan="2" 
                         Text="{Binding Email}"/>

                        </Grid>
                    </Border>
                    <Border Margin="5,5,5,5" CornerRadius="5"  Grid.Row="2" Grid.Column="2" BorderBrush="#FF149A08" BorderThickness="1">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>



                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>


                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>

                            <TextBlock Text="Tổng số cơ hội" Margin="5"/>
                            <TextBox x:Name="tbxTongSoCoHoi_tabThemChienDichDialog" Grid.Column="1" Margin="5" Grid.ColumnSpan="3" 
                         Text="{Binding TroLy}"/>
                            <TextBlock Text="Tổng giá trị" Margin="5" Grid.Row="1"/>
                            <TextBox x:Name="TelTongGiaTri_tabThemChienDichDialog" Grid.Row="1" 
                         Grid.Column="1" Grid.ColumnSpan="3" Margin="5"
                         Text="{Binding TelTroLy}" />
                            <TextBlock Text="Số cơ hội thắng " Margin="5" Grid.Row="2"/>
                            <TextBox x:Name="tbxSoCoHoiThang_tabThemChienDichDialog" Grid.Row="2" 
                         Grid.Column="1" Grid.ColumnSpan="3" Margin="5"
                         Text="{Binding Email}"  />
                            <TextBlock Text="Tổng giá trị thắng " Margin="5" Grid.Row="3"/>
                            <TextBox x:Name="tbxTongGiaTriThang_tabThemChienDichDialog" Grid.Row="3" 
                         Grid.Column="1" Grid.ColumnSpan="3" Margin="5"
                         Text="{Binding Email}"  />

                            <TextBlock Text="Chủ sở hữu" Margin="5" Grid.Row="4" />
                            <ComboBox x:Name="cbxChuSoHuu_tabThemChienDichDialog" Grid.Row="4" 
                          Grid.Column="1" Grid.ColumnSpan="3" Margin="5"
                          SelectedValue="{Binding CHITIETPHANLOAILIENHE}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding TenPhanLoai}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>

                            <CheckBox x:Name="chkDungChung_tabThemChienDichDialog" Content="Dùng chung"  Grid.Column="1"  Grid.Row="5"  Margin="5,20,5,5" 
                  VerticalAlignment="Top" HorizontalAlignment="Left"
                  IsChecked="{Binding a }"/>
                            <Button x:Name="btnCapNhatTinhTrangChienDich_tabThemChienDichDialog" Content="Cập nhật tình trạng chiến dịch" Grid.Row="6" 
                         Grid.Column="1"  Margin="5"    Grid.ColumnSpan="1"                    
                HorizontalAlignment="Left" VerticalAlignment="Bottom"
                IsDefault="True"/>


                        </Grid>
                    </Border>
                    <Border Margin="5" CornerRadius="5" Grid.Row="3" Grid.ColumnSpan="2" >
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="120"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>

                            </Grid.RowDefinitions>
                            <CheckBox x:Name="chkKetThuc_tabThemChienDichDialog" Content="kết thúc" Margin="5,5,5,5" 
                  VerticalAlignment="Top" HorizontalAlignment="Left"
                  IsChecked="{Binding NgungTheoDoi}"/>
                            <Button x:Name="btnCat_tabThemChienDichDialog" Content="Cất" Grid.Row="0" Grid.Column="1" Margin="5,10,10,5" 
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Width="100" Height="35"  IsDefault="True"/>
                            <Button x:Name="btnHuyBo_tabThemChienDichDialog" Content="Huỷ bỏ" Grid.Row="0" Grid.Column="2" Margin="5,10,10,5" 
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Width="100" Height="35" IsCancel="True"/>

                        </Grid>
                    </Border>
                </Grid>
            </TabItem>

        </TabControl>

    </Grid>
</Window>
